package com.bw.ivideo.testmvi.home.state

import com.bw.ivideo.testmvi.home.model.entity.SimpleTypeEntity
import com.bw.lib_common.base.IState


/**
 * @author ytx
 * @date 2025-10-16 10:13
 * @description 状态
 */
sealed class HomeSimpleTypeState: IState {
    /**
     * 加载中
     */
    object Loading: HomeSimpleTypeState()

    /**
     * 空数据
     */
    object Empty: HomeSimpleTypeState()

    /**
     * 成功
     */
    data class Success(val data: List<SimpleTypeEntity>): HomeSimpleTypeState()

    /**
     * 失败
     */
    data class Error(val message:String): HomeSimpleTypeState()

    /**
     * 初始化
     */
    object Init:HomeSimpleTypeState()


}